package com.adcc.swingui.demo.statusbar;

import java.awt.Container;

import javax.swing.JComponent;
import javax.swing.JLabel;

import com.adcc.swingui.base.DefaultStatusBar;
import com.jidesoft.status.LabelStatusBarItem;
/**
 * 当前用户的状态条
 * 启动时，读取用户名称，这个登入后就不会改变
 * @author charlie
 *
 */
public class UserStatusBut extends DefaultStatusBar {
	LabelStatusBarItem labUser;
	public UserStatusBut(Container container) {
		super(container);
	}

	@Override
	protected JComponent build() {
        labUser = new LabelStatusBarItem();
        labUser.setText("用户:admin");
        labUser.setAlignment(JLabel.LEFT);
        return labUser;
	}

	@Override
	protected void i18n() {
		// TODO Auto-generated method stub
		
	}

}
